Array.prototype.inArray=function(e){
	var r=new RegExp(','+e+',');  
	return (r.test(','+this.join(this.S)+','));  
};  
Array.prototype.indexOf = function(val) { 
	for (var i = 0; i < this.length; i++) { 
		if (this[i] == val) return i; 
	} 
	return -1; 
}; 
Array.prototype.remove = function(val) { 
	var index = this.indexOf(val); 
	if (index > -1) { 
		this.splice(index, 1); 
	} 
}; 


$.extend($.fn.validatebox.defaults.rules, {
   	fun : {
	   	validator : function (value, param) {
   			if ($.isFunction(window[param])) {
   				return window[param].call(this,value);
		   	} 
	   	},
	  	message : '验证不通过'
   	}
});